package com.dpxiao.news.news.ui.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.dpxiao.news.news.R;
import com.dpxiao.news.news.dagger.component.activity.DaggerMainActivityComponent;
import com.dpxiao.news.news.dagger.component.activity.MainActivityComponent;
import com.dpxiao.news.news.dagger.module.activity.MainActivityModule;
import com.dpxiao.news.news.presenter.activity.MainActivityPresenter;

import javax.inject.Inject;

public class MainActivity extends AppCompatActivity {

    @Inject
    MainActivityPresenter presenter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        MainActivityComponent component = DaggerMainActivityComponent.builder().mainActivityModule(new MainActivityModule(this)).build();
        component.in(this);

        presenter.showToast();

    }
}
